/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmPrincipal.java
 *
 * Created on 04-dic-2014, 8:43:50
 */
package piii.presentacion;

/**
 *
 * @author sistemas
 */
public class FrmPrincipal extends javax.swing.JFrame {

    /** Creates new form FrmPrincipal */
    public FrmPrincipal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        BtnEntero = new javax.swing.JButton();
        btnVector = new javax.swing.JButton();
        btnconjunto = new javax.swing.JButton();
        btnLista = new javax.swing.JButton();
        btnrubro = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        BtnEntero.setText("Vectores");
        BtnEntero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnEnteroActionPerformed(evt);
            }
        });

        btnVector.setText("Vectores");

        btnconjunto.setText("Conjunto");
        btnconjunto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnconjuntoActionPerformed(evt);
            }
        });

        btnLista.setText("Listas");
        btnLista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListaActionPerformed(evt);
            }
        });

        btnrubro.setText("Registrar rubro");
        btnrubro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnrubroActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(BtnEntero)
                        .addComponent(btnVector)
                        .addComponent(btnconjunto, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnLista, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(btnrubro))
                .addContainerGap(285, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addComponent(BtnEntero)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnVector)
                .addGap(18, 18, 18)
                .addComponent(btnconjunto)
                .addGap(18, 18, 18)
                .addComponent(btnLista)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnrubro)
                .addContainerGap(92, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BtnEnteroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnEnteroActionPerformed
        // TODO add your handling code here:
        FrmEntero f=new FrmEntero();
        f.setVisible(true);
    }//GEN-LAST:event_BtnEnteroActionPerformed

    private void btnconjuntoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnconjuntoActionPerformed
        // TODO add your handling code here:
        FrmConjunto f=new FrmConjunto();
        f.setVisible(true);
    }//GEN-LAST:event_btnconjuntoActionPerformed

    private void btnListaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListaActionPerformed
        // TODO add your handling code here:
        
        FrmLista f=new FrmLista();
        f.setVisible(true);
    }//GEN-LAST:event_btnListaActionPerformed

    private void btnrubroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnrubroActionPerformed
        // TODO add your handling code here:
        frmRubro f=new frmRubro();
        f.setVisible(true);
    }//GEN-LAST:event_btnrubroActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FrmPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BtnEntero;
    private javax.swing.JButton btnLista;
    private javax.swing.JButton btnVector;
    private javax.swing.JButton btnconjunto;
    private javax.swing.JButton btnrubro;
    // End of variables declaration//GEN-END:variables
}
